package class_test.test1_0330;

import java.util.GregorianCalendar;

/**
 * @author haomin
 * @date 2022/03/30 16:22
 **/
public class Calender {
    public static void main(String[] args) {
        GregorianCalendar gc = new GregorianCalendar();

        int year = gc.get(gc.YEAR);
        int month = gc.get(gc.MONTH);
        int day = gc.get(gc.DAY_OF_MONTH);
        System.out.println("年月日：" + year + "." + (month+1) + "." +day);

        gc.setTimeInMillis(1234567898765L);
        System.out.println(gc.getTime());
    }
}